﻿using System;
using System.Web.Mail;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using MLY;
using MLY.Dal;
using MLY.Bll;
using System.IO;


namespace MLY.Reports.DataReports
{
    public partial class RowMaterialInventoryControlReport : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                RowMaterialInventoryControlDataSource.SelectParameters.Add("OrganizationId", SessParam.OrganizationId.ToString());
            }
        }

        protected string GetQtyDelivered(object WorkOrderId)
        {
            return clsWorkOrder.GetOpenQuantity(WorkOrderId).ToString();
        }

        protected void btnPdfExport_Click(object sender, EventArgs e)
        {
            Response.Clear();

            gridExport.WritePdfToResponse();
        }
        protected void btnXlsExport_Click(object sender, EventArgs e)
        {
            Response.Clear();
            gridExport.WriteXlsToResponse();

        }
        protected void btnXlsxExport_Click(object sender, EventArgs e)
        {
            Response.Clear();
            gridExport.WriteXlsxToResponse();
        }
        protected void btnRtfExport_Click(object sender, EventArgs e)
        {
            Response.Clear();
            gridExport.WriteRtfToResponse();
        }
    }
}
